Change the VNC main input loop delay from 1 second down to 10
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 16 Mar 2006 17:43:07 +0000 (18:43 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 16 Mar 2006 17:43:07 +0000 (18:43 +0100)
msec.  The 1 second delay was causing significant latency problems
with the mouse while there is no measurable overhead in lowering the
delay down to 10 msec.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
tools/ioemu/target-i386-dm/helper2.c

index 14341f3d185d5af6446978781b904a1a7d6ddcce..af4a8e8d8bbe311263876e47212539468cdf2144 100644 (file)
@@ -447,9 +447,9 @@ int main_loop(void)
             }
         }
 
-        /* Wait up to one seconds. */
+        /* Wait up to 10 msec. */
         tv.tv_sec = 0;
-        tv.tv_usec = 100000;
+        tv.tv_usec = 10000;
 
         retval = select(highest_fds+1, &wakeup_rfds, NULL, NULL, &tv);
         if (retval == -1) {